class Dog:
    tooth = 10

    @classmethod
    def get_tooth(cls):
        return  cls.tooth

    #静态方法
    @staticmethod
    def print_info():
        print("这是一个用于创建狗对象的类")

    @staticmethod
    def add_func(n,m):
        print(n + m)
wangcai = Dog()
res1 = wangcai.get_tooth()
print(res1)
wangcai.tooth = 8
res2 = wangcai.get_tooth()

print(res2)

print(Dog.get_tooth())

Dog.print_info()
Dog.add_func(9,6)
